# 寻找比平均值重的体重
def overWeight():
    # 获取数据
    weights = eval(input("请输入小朋友们的体重（单位：kg，用逗号间隔）："))
    # 计算求和
    sum = 0
    for weight in weights:
        sum += weight
    # 求平均值
    avg = sum / len(weights)
    # 将体重大于平均值的存放到列表中
    lst = []
    for weight in weights:
        if weight > avg:
            lst.append(weight)
    return lst
# 获得体重大于平均值的列表，然后一个一个输出
vals = overWeight()
print("比平均体重重的体重如下：", end=" ")
for val in vals:
    print(val, end=" ")